package com.ztgf.commodity.models.service;

import com.baomidou.mybatisplus.service.IService;
import com.ztgf.commodity.models.bo.CommodityAuditLogSaveBO;
import com.ztgf.commodity.models.dto.CommodityAuditLogDTO;
import com.ztgf.commodity.models.vo.CommodityAuditLogVO;

import java.util.List;

/**
 * author: chenyu.wang
 * date: 2020-05-26 16:50
 * Description:商品审核日志表
 */
public interface ICommodityAuditLogService extends IService<CommodityAuditLogDTO> {
    /**
     * description: 异步添加审核日志表
     * param: [bo]
     * author: chenyu.wang
     * date: 2020-05-26
     * return: void
     */
    void add(CommodityAuditLogSaveBO bo);

    /**
     * description: 后台管理系统商品审核日志列表
     * param: [vo]
     * author: chenyu.wang
     * date: 2020-05-28
     * return: java.util.List<com.ztgf.commodity.models.vo.CommodityAuditLogVO>
     */
    List<CommodityAuditLogVO> queryCommodityAuditLogList(CommodityAuditLogVO vo);

    /**
     * description: 根据id查找商品审核日志表
     * param: [id]
     * author: chenyu.wang
     * date: 2020-05-28
     * return: com.ztgf.commodity.models.vo.CommodityAuditLogVO
     */
    CommodityAuditLogVO getByLogId(Long id);

    /**
     * 根据商品id获取审核记录列表
     * @param id
     * @return
     */
    List<CommodityAuditLogVO> getLogsByCommodityId(Long id);
}
